.class public Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;
.super Landroid/app/Activity;
.source "DeleteFootprintsActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$ListModeAdapter;,
        Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$ListModeItem;,
        Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$DeleteFootprintsThread;
    }
.end annotation


# static fields
.field private static final DELETE_ALL_DIALOG:I = 0x3

.field private static final DELETE_DIALOG:I = 0x2

.field private static final MENU_DELETE_ALL:I = 0x2

.field private static final MENU_SORT:I = 0x1

.field private static final MENU_VIEW:I = 0x0

.field private static final SORT_BY_DATE:I = 0x1

.field private static final SORT_BY_NAME:I = 0x0

.field private static final SORT_DIALOG:I = 0x1

.field private static final TAG:Ljava/lang/String; = "DeleteFootprintsActivity"

.field private static final VIEW_DIALOG:I


# instance fields
.field protected mAdapter:Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$ListModeAdapter;

.field private mCacheTag:Ljava/lang/String;

.field protected mCancelButton:Landroid/widget/Button;

.field private mCategoryIndex:I

.field private mCategoryKeyword:Ljava/lang/String;

.field private mCategoryList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/htc/android/footprints/vo/Category;",
            ">;"
        }
    .end annotation
.end field

.field private mCategoryNames:[Ljava/lang/String;

.field protected mCursor:Landroid/database/Cursor;

.field protected mDoneButton:Landroid/widget/Button;

.field protected mEmptyText:Landroid/widget/TextView;

.field protected mEmptyView:Landroid/view/View;

.field protected mFilter:Landroid/widget/Filter;

.field protected mFootprintManager:Lcom/htc/android/footprints/provider/FootprintManager;

.field protected mListView:Lcom/htc/widget/HtcListView;

.field protected mSearchBox:Lcom/htc/widget/SearchBoxView;

.field protected mSearchEdit:Landroid/widget/EditText;

.field private mSelectedFootprints:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/htc/android/footprints/vo/Footprint;",
            ">;"
        }
    .end annotation
.end field

.field private mSortMode:I

.field private mSortString:Ljava/lang/String;

.field protected mTitleField:Landroid/view/View;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 62
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 501
    return-void
.end method

.method static synthetic access$000(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;I)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 62
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->switchListField(I)V

    return-void
.end method

.method static synthetic access$100(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 62
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->updateEmptyText()V

    return-void
.end method

.method static synthetic access$1000(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 62
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryKeyword:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$1100(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 62
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCacheTag:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$200(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 62
    iget v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSortMode:I

    return v0
.end method

.method static synthetic access$202(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 62
    iput p1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSortMode:I

    return p1
.end method

.method static synthetic access$300(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 62
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->clearCheckState()V

    return-void
.end method

.method static synthetic access$400(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 62
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSortString:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$402(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 62
    iput-object p1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSortString:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$500(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 62
    iget v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryIndex:I

    return v0
.end method

.method static synthetic access$600(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;I)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 62
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->doChangeCategory(I)V

    return-void
.end method

.method static synthetic access$700(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)Ljava/util/ArrayList;
    .locals 1
    .parameter "x0"

    .prologue
    .line 62
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSelectedFootprints:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$800(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;[Lcom/htc/android/footprints/vo/Footprint;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 62
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->deleteFootprints([Lcom/htc/android/footprints/vo/Footprint;)V

    return-void
.end method

.method static synthetic access$900(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 62
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->doDelete()V

    return-void
.end method

.method private clearCheckState()V
    .locals 6

    .prologue
    .line 401
    iget-object v4, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mListView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v4}, Lcom/htc/widget/HtcListView;->getCheckedItemPositions()Landroid/util/SparseBooleanArray;

    move-result-object v1

    .line 402
    .local v1, items:Landroid/util/SparseBooleanArray;
    invoke-virtual {v1}, Landroid/util/SparseBooleanArray;->size()I

    move-result v3

    .line 403
    .local v3, size:I
    iget-object v2, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mListView:Lcom/htc/widget/HtcListView;

    .line 404
    .local v2, listView:Lcom/htc/widget/HtcListView;
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    if-ge v0, v3, :cond_1

    .line 405
    invoke-virtual {v1, v0}, Landroid/util/SparseBooleanArray;->valueAt(I)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 406
    invoke-virtual {v1, v0}, Landroid/util/SparseBooleanArray;->keyAt(I)I

    move-result v4

    const/4 v5, 0x0

    invoke-virtual {v2, v4, v5}, Lcom/htc/widget/HtcListView;->setItemChecked(IZ)V

    .line 404
    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 409
    :cond_1
    return-void
.end method

.method private deleteFootprints([Lcom/htc/android/footprints/vo/Footprint;)V
    .locals 3
    .parameter "data"

    .prologue
    .line 443
    new-instance v0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$DeleteFootprintsThread;

    invoke-direct {v0, p0, p1}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$DeleteFootprintsThread;-><init>(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;[Lcom/htc/android/footprints/vo/Footprint;)V

    .line 444
    .local v0, deleteThread:Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$DeleteFootprintsThread;
    invoke-virtual {v0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$DeleteFootprintsThread;->start()V

    .line 445
    new-instance v1, Ljava/lang/Thread;

    new-instance v2, Lcom/htc/android/footprints/utils/clearCachedRunnable;

    invoke-direct {v2, p1}, Lcom/htc/android/footprints/utils/clearCachedRunnable;-><init>([Lcom/htc/android/footprints/vo/Footprint;)V

    invoke-direct {v1, v2}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    invoke-virtual {v1}, Ljava/lang/Thread;->start()V

    .line 446
    invoke-static {p0}, Lcom/htc/android/footprints/provider/FootprintManager;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v1

    invoke-virtual {v1, p1}, Lcom/htc/android/footprints/provider/FootprintManager;->removeFootprint([Lcom/htc/android/footprints/vo/Footprint;)V

    .line 447
    return-void
.end method

.method private doChangeCategory(I)V
    .locals 2
    .parameter "which"

    .prologue
    .line 412
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->clearCheckState()V

    .line 413
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryList:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/htc/android/footprints/vo/Category;

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryKeyword:Ljava/lang/String;

    .line 414
    iput p1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryIndex:I

    .line 415
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->updateEmptyText()V

    .line 416
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mFilter:Landroid/widget/Filter;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSearchEdit:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Filter;->filter(Ljava/lang/CharSequence;)V

    .line 417
    return-void
.end method

.method private doDelete()V
    .locals 7

    .prologue
    .line 420
    iget-object v6, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mListView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v6}, Lcom/htc/widget/HtcListView;->getCheckedItemPositions()Landroid/util/SparseBooleanArray;

    move-result-object v3

    .line 421
    .local v3, items:Landroid/util/SparseBooleanArray;
    invoke-virtual {v3}, Landroid/util/SparseBooleanArray;->size()I

    move-result v5

    .line 422
    .local v5, size:I
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mAdapter:Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$ListModeAdapter;

    .line 425
    .local v0, adapter:Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$ListModeAdapter;
    new-instance v6, Ljava/util/ArrayList;

    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    iput-object v6, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSelectedFootprints:Ljava/util/ArrayList;

    .line 426
    const/4 v2, 0x0

    .local v2, i:I
    :goto_0
    if-ge v2, v5, :cond_1

    .line 427
    invoke-virtual {v3, v2}, Landroid/util/SparseBooleanArray;->valueAt(I)Z

    move-result v6

    if-eqz v6, :cond_0

    .line 428
    invoke-virtual {v3, v2}, Landroid/util/SparseBooleanArray;->keyAt(I)I

    move-result v4

    .line 429
    .local v4, position:I
    invoke-virtual {v0, v4}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$ListModeAdapter;->getFootprint(I)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v1

    .line 430
    .local v1, footprint:Lcom/htc/android/footprints/vo/Footprint;
    iget-object v6, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSelectedFootprints:Ljava/util/ArrayList;

    invoke-virtual {v6, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 426
    .end local v1           #footprint:Lcom/htc/android/footprints/vo/Footprint;
    .end local v4           #position:I
    :cond_0
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 433
    :cond_1
    iget-object v6, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSelectedFootprints:Ljava/util/ArrayList;

    invoke-virtual {v6}, Ljava/util/ArrayList;->size()I

    move-result v5

    .line 434
    if-lez v5, :cond_2

    .line 435
    const/4 v6, 0x2

    invoke-virtual {p0, v6}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->showDialog(I)V

    .line 439
    :goto_1
    return-void

    .line 437
    :cond_2
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->finish()V

    goto :goto_1
.end method

.method private parseIntent()V
    .locals 3

    .prologue
    const/4 v2, 0x1

    .line 347
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    .line 348
    .local v0, intent:Landroid/content/Intent;
    const-string v1, "EXTRA_SORT_MODE"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v1

    iput v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSortMode:I

    .line 349
    iget v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSortMode:I

    if-ne v1, v2, :cond_2

    .line 350
    const-string v1, "create_time desc"

    iput-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSortString:Ljava/lang/String;

    .line 354
    :goto_0
    const-string v1, "EXTRA_CATEGORY"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryKeyword:Ljava/lang/String;

    .line 355
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryKeyword:Ljava/lang/String;

    if-nez v1, :cond_0

    .line 356
    invoke-static {}, Lcom/htc/android/footprints/vo/Category;->getAllCategory()Lcom/htc/android/footprints/vo/Category;

    move-result-object v1

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    iput-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryKeyword:Ljava/lang/String;

    .line 358
    :cond_0
    const-string v1, "EXTRA_CACHE_TAG"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCacheTag:Ljava/lang/String;

    .line 359
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCacheTag:Ljava/lang/String;

    if-nez v1, :cond_1

    .line 360
    const-string v1, "ListModeActivity"

    iput-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCacheTag:Ljava/lang/String;

    .line 362
    :cond_1
    return-void

    .line 352
    :cond_2
    const-string v1, "name asc"

    iput-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSortString:Ljava/lang/String;

    goto :goto_0
.end method

.method private setViews()V
    .locals 5

    .prologue
    .line 313
    const v0, 0x102000a

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/htc/widget/HtcListView;

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mListView:Lcom/htc/widget/HtcListView;

    .line 314
    const v0, 0x1020004

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mEmptyView:Landroid/view/View;

    .line 315
    const v0, 0x7f0c001e

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mEmptyText:Landroid/widget/TextView;

    .line 316
    const v0, 0x7f0c0020

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mDoneButton:Landroid/widget/Button;

    .line 317
    const v0, 0x7f0c0021

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCancelButton:Landroid/widget/Button;

    .line 318
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mDoneButton:Landroid/widget/Button;

    new-instance v1, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$6;

    invoke-direct {v1, p0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$6;-><init>(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 323
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCancelButton:Landroid/widget/Button;

    new-instance v1, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$7;

    invoke-direct {v1, p0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$7;-><init>(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 328
    const v0, 0x7f0c001c

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mTitleField:Landroid/view/View;

    .line 329
    const v0, 0x7f0c001d

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/htc/widget/SearchBoxView;

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSearchBox:Lcom/htc/widget/SearchBoxView;

    .line 330
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSearchBox:Lcom/htc/widget/SearchBoxView;

    invoke-virtual {v0}, Lcom/htc/widget/SearchBoxView;->getTextField()Landroid/widget/EditText;

    move-result-object v0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSearchEdit:Landroid/widget/EditText;

    .line 331
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSearchEdit:Landroid/widget/EditText;

    const v1, 0x7f0a0056

    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    .line 332
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSearchEdit:Landroid/widget/EditText;

    const/16 v1, 0x70

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setInputType(I)V

    .line 333
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSearchEdit:Landroid/widget/EditText;

    const/4 v1, 0x1

    new-array v1, v1, [Landroid/text/InputFilter;

    const/4 v2, 0x0

    new-instance v3, Landroid/text/InputFilter$LengthFilter;

    const/16 v4, 0x14

    invoke-direct {v3, v4}, Landroid/text/InputFilter$LengthFilter;-><init>(I)V

    aput-object v3, v1, v2

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setFilters([Landroid/text/InputFilter;)V

    .line 334
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSearchEdit:Landroid/widget/EditText;

    new-instance v1, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$8;

    invoke-direct {v1, p0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$8;-><init>(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 344
    return-void
.end method

.method private switchListField(I)V
    .locals 3
    .parameter "count"

    .prologue
    const/16 v2, 0x8

    const/4 v1, 0x0

    .line 365
    if-eqz p1, :cond_0

    .line 366
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mListView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v0, v1}, Lcom/htc/widget/HtcListView;->setVisibility(I)V

    .line 367
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mEmptyView:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 372
    :goto_0
    return-void

    .line 369
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mListView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v0, v2}, Lcom/htc/widget/HtcListView;->setVisibility(I)V

    .line 370
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mEmptyView:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0
.end method

.method private switchSearchField()V
    .locals 4

    .prologue
    const/16 v3, 0x8

    const/4 v2, 0x0

    .line 375
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSearchBox:Lcom/htc/widget/SearchBoxView;

    invoke-virtual {v0}, Lcom/htc/widget/SearchBoxView;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    .line 376
    invoke-static {p0}, Lcom/htc/android/footprints/utils/ImeLauncher;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/utils/ImeLauncher;

    move-result-object v0

    iget-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSearchEdit:Landroid/widget/EditText;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/utils/ImeLauncher;->hide(Landroid/widget/EditText;)V

    .line 377
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mTitleField:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 378
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSearchBox:Lcom/htc/widget/SearchBoxView;

    invoke-virtual {v0, v3}, Lcom/htc/widget/SearchBoxView;->setVisibility(I)V

    .line 379
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSearchEdit:Landroid/widget/EditText;

    const-string v1, ""

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 386
    :goto_0
    return-void

    .line 381
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mTitleField:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    .line 382
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSearchBox:Lcom/htc/widget/SearchBoxView;

    invoke-virtual {v0, v2}, Lcom/htc/widget/SearchBoxView;->setVisibility(I)V

    .line 383
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSearchEdit:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->requestFocus()Z

    .line 384
    invoke-static {p0}, Lcom/htc/android/footprints/utils/ImeLauncher;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/utils/ImeLauncher;

    move-result-object v0

    iget-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSearchEdit:Landroid/widget/EditText;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/utils/ImeLauncher;->show(Landroid/widget/EditText;)V

    goto :goto_0
.end method

.method private updateEmptyText()V
    .locals 2

    .prologue
    .line 389
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSearchEdit:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->length()I

    move-result v0

    if-lez v0, :cond_0

    .line 390
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mEmptyText:Landroid/widget/TextView;

    const v1, 0x7f0a00a2

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 398
    :goto_0
    return-void

    .line 392
    :cond_0
    iget v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryIndex:I

    if-eqz v0, :cond_1

    .line 393
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mEmptyText:Landroid/widget/TextView;

    const v1, 0x7f0a00a1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    .line 395
    :cond_1
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mEmptyText:Landroid/widget/TextView;

    const v1, 0x7f0a00a0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .locals 9
    .parameter "icicle"

    .prologue
    const/4 v8, 0x1

    .line 95
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 96
    invoke-virtual {p0, v8}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->requestWindowFeature(I)Z

    .line 97
    const v4, 0x7f030007

    invoke-virtual {p0, v4}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->setContentView(I)V

    .line 98
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->setViews()V

    .line 99
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->parseIntent()V

    .line 101
    invoke-static {p0}, Lcom/htc/android/footprints/provider/FootprintManager;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v4

    iput-object v4, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mFootprintManager:Lcom/htc/android/footprints/provider/FootprintManager;

    .line 102
    iget-object v4, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mFootprintManager:Lcom/htc/android/footprints/provider/FootprintManager;

    iget-object v5, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryKeyword:Ljava/lang/String;

    iget-object v6, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSortString:Ljava/lang/String;

    invoke-virtual {v4, v5, v6}, Lcom/htc/android/footprints/provider/FootprintManager;->findFootprintCursorByCategory(Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v4

    iput-object v4, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCursor:Landroid/database/Cursor;

    .line 103
    new-instance v4, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$ListModeAdapter;

    const v5, 0x7f030008

    iget-object v6, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCursor:Landroid/database/Cursor;

    invoke-direct {v4, p0, p0, v5, v6}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$ListModeAdapter;-><init>(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;Landroid/content/Context;ILandroid/database/Cursor;)V

    iput-object v4, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mAdapter:Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$ListModeAdapter;

    .line 104
    iget-object v4, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mAdapter:Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$ListModeAdapter;

    invoke-virtual {v4}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$ListModeAdapter;->updateSections()V

    .line 105
    iget-object v4, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mAdapter:Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$ListModeAdapter;

    invoke-virtual {v4}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$ListModeAdapter;->getFilter()Landroid/widget/Filter;

    move-result-object v4

    iput-object v4, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mFilter:Landroid/widget/Filter;

    .line 106
    new-instance v4, Landroid/os/Handler;

    invoke-direct {v4}, Landroid/os/Handler;-><init>()V

    new-instance v5, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$1;

    invoke-direct {v5, p0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$1;-><init>(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)V

    const-wide/16 v6, 0x46

    invoke-virtual {v4, v5, v6, v7}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 113
    iget-object v4, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mListView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v4, v8}, Lcom/htc/widget/HtcListView;->setFastScrollEnabled(Z)V

    .line 114
    iget-object v4, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mListView:Lcom/htc/widget/HtcListView;

    const/4 v5, 0x2

    invoke-virtual {v4, v5}, Lcom/htc/widget/HtcListView;->setChoiceMode(I)V

    .line 115
    iget-object v4, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mListView:Lcom/htc/widget/HtcListView;

    iget-object v5, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mAdapter:Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$ListModeAdapter;

    invoke-virtual {v4, v5}, Lcom/htc/widget/HtcListView;->setRecyclerListener(Lcom/htc/widget/HtcAbsListView$RecyclerListener;)V

    .line 117
    invoke-static {p0}, Lcom/htc/android/footprints/provider/FootprintManager;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v4

    invoke-virtual {v4}, Lcom/htc/android/footprints/provider/FootprintManager;->getAllCategory()Ljava/util/ArrayList;

    move-result-object v2

    .line 118
    .local v2, list:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/htc/android/footprints/vo/Category;>;"
    const/4 v4, 0x0

    invoke-static {}, Lcom/htc/android/footprints/vo/Category;->getAllCategory()Lcom/htc/android/footprints/vo/Category;

    move-result-object v5

    invoke-virtual {v2, v4, v5}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    .line 119
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v3

    .line 120
    .local v3, size:I
    new-array v4, v3, [Ljava/lang/String;

    iput-object v4, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryNames:[Ljava/lang/String;

    .line 122
    const/4 v1, 0x0

    .local v1, i:I
    :goto_0
    if-ge v1, v3, :cond_1

    .line 123
    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/htc/android/footprints/vo/Category;

    .line 124
    .local v0, c:Lcom/htc/android/footprints/vo/Category;
    iget-object v4, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryNames:[Ljava/lang/String;

    iget-object v5, v0, Lcom/htc/android/footprints/vo/Category;->mName:Ljava/lang/String;

    aput-object v5, v4, v1

    .line 125
    iget-object v4, v0, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    iget-object v5, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryKeyword:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 126
    iput v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryIndex:I

    .line 122
    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 129
    .end local v0           #c:Lcom/htc/android/footprints/vo/Category;
    :cond_1
    iput-object v2, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryList:Ljava/util/ArrayList;

    .line 130
    return-void
.end method

.method protected onCreateDialog(I)Landroid/app/Dialog;
    .locals 9
    .parameter "id"

    .prologue
    const v8, 0x7f0a0065

    const v7, 0x7f0200ad

    const v6, 0x1080027

    const/4 v5, 0x0

    const v4, 0x7f0a0004

    .line 216
    const/4 v1, 0x0

    .line 217
    .local v1, result:Landroid/app/Dialog;
    packed-switch p1, :pswitch_data_0

    .line 306
    :goto_0
    if-nez v1, :cond_0

    .line 307
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreateDialog(I)Landroid/app/Dialog;

    move-result-object v1

    .line 309
    :cond_0
    return-object v1

    .line 220
    :pswitch_0
    new-instance v2, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v2, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v3, 0x7f0a0062

    invoke-virtual {v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2, v7}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2, v4, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    const v3, 0x7f070001

    iget v4, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSortMode:I

    new-instance v5, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$2;

    invoke-direct {v5, p0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$2;-><init>(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)V

    invoke-virtual {v2, v3, v4, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setSingleChoiceItems(IILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v1

    .line 244
    goto :goto_0

    .line 247
    :pswitch_1
    new-instance v2, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v2, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v3, 0x7f0a0026

    invoke-virtual {v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2, v7}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2, v4, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    iget-object v3, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryNames:[Ljava/lang/String;

    iget v4, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryIndex:I

    new-instance v5, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$3;

    invoke-direct {v5, p0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$3;-><init>(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)V

    invoke-virtual {v2, v3, v4, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setSingleChoiceItems([Ljava/lang/CharSequence;ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v1

    .line 260
    goto :goto_0

    .line 263
    :pswitch_2
    new-instance v2, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v2, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {v2, v6}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    const v3, 0x7f0a001b

    invoke-virtual {v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    const v3, 0x7f0a001d

    invoke-virtual {v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setMessage(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    new-instance v3, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$4;

    invoke-direct {v3, p0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$4;-><init>(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)V

    invoke-virtual {v2, v8, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2, v4, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v1

    .line 280
    goto :goto_0

    .line 284
    :pswitch_3
    iget-object v2, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryKeyword:Ljava/lang/String;

    invoke-static {}, Lcom/htc/android/footprints/vo/Category;->getAllCategory()Lcom/htc/android/footprints/vo/Category;

    move-result-object v3

    iget-object v3, v3, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    if-ne v2, v3, :cond_1

    .line 285
    const v2, 0x7f0a001a

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 290
    .local v0, message:Ljava/lang/String;
    :goto_1
    new-instance v2, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v2, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v3, 0x7f0a00a5

    invoke-virtual {p0, v3}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2, v6}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2, v0}, Lcom/htc/widget/HtcAlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    new-instance v3, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$5;

    invoke-direct {v3, p0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$5;-><init>(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;)V

    invoke-virtual {v2, v8, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2, v4, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v2

    invoke-virtual {v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v1

    goto/16 :goto_0

    .line 287
    .end local v0           #message:Ljava/lang/String;
    :cond_1
    const v2, 0x7f0a0019

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    .restart local v0       #message:Ljava/lang/String;
    goto :goto_1

    .line 217
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 5
    .parameter "menu"

    .prologue
    const/4 v4, 0x2

    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 160
    const v0, 0x7f0a0026

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v2, v2, v2, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200e5

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 163
    const v0, 0x7f0a0025

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v2, v3, v3, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200e4

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 166
    const v0, 0x7f0a0036

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v2, v4, v4, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200ae

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 169
    return v3
.end method

.method public onDestroy()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 134
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 137
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSelectedFootprints:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    .line 138
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSelectedFootprints:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 139
    iput-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mSelectedFootprints:Ljava/util/ArrayList;

    .line 142
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCursor:Landroid/database/Cursor;

    if-eqz v0, :cond_1

    .line 143
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 145
    :cond_1
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 146
    iput-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryList:Ljava/util/ArrayList;

    .line 147
    iput-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mCategoryNames:[Ljava/lang/String;

    .line 148
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mListView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v0, v1}, Lcom/htc/widget/HtcListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 149
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mListView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v0, v1}, Lcom/htc/widget/HtcListView;->setRecyclerListener(Lcom/htc/widget/HtcAbsListView$RecyclerListener;)V

    .line 150
    iput-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mFootprintManager:Lcom/htc/android/footprints/provider/FootprintManager;

    .line 151
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1
    .parameter "keyCode"
    .parameter "event"

    .prologue
    .line 202
    const/16 v0, 0x54

    if-ne p1, v0, :cond_0

    .line 203
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->switchSearchField()V

    .line 204
    const/4 v0, 0x1

    .line 206
    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1, p2}, Landroid/app/Activity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 3
    .parameter "item"

    .prologue
    const/4 v2, 0x1

    .line 174
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    .line 175
    .local v0, id:I
    if-ne v0, v2, :cond_1

    .line 176
    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->showDialog(I)V

    .line 184
    :cond_0
    :goto_0
    return v2

    .line 177
    :cond_1
    const/4 v1, 0x2

    if-ne v0, v1, :cond_2

    .line 178
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->mAdapter:Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$ListModeAdapter;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$ListModeAdapter;->getCount()I

    move-result v1

    if-lez v1, :cond_0

    .line 179
    const/4 v1, 0x3

    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->showDialog(I)V

    goto :goto_0

    .line 181
    :cond_2
    if-nez v0, :cond_0

    .line 182
    const/4 v1, 0x0

    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;->showDialog(I)V

    goto :goto_0
.end method
